package edu.spbsu.nonsm00th.qdiff.parser.exception;

import java.text.MessageFormat;

/**
 * Throws if there are two splitted subexpressions (missed delimeter).
 *
 * @author mbuzdov
 */
public class DelimeterMissedException extends ParserException {

    public DelimeterMissedException(int position) {
        super(MessageFormat.format("Two subexpressions should be separated by some operation, separator or by close bracket, position: {0}.", position));
        this.position = position;
    }

}
